#include <stdlib.h>

#include "bamMIOSortCore.h"
#include  "utils.h"



int main( int argc , char *argv[])
{

//     -3: outputName      -2:outputFileName    -1:split Size

    init_run_time();

    int n = atoi(argv[argc - 1]);

    coreInit( argv[1], argv[argc - 3], n );

    run_classify_buck(argv + 1 ,  argc - 4 , 24);
    
    fprintf(stderr,"time = %2.f  sec [classify process]\n",get_run_time());

    run_sort_buck( argv[argc - 2] , 48);

    coreDestory();

    fprintf(stderr,"total time = %2.f sec\n",get_run_time());

    return 0 ;
}

